package com.culture.bootdemo.model.req;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserReq extends BaseReq{
    private Integer userId;

    @NotBlank(message="用户名不能为空")
    private String userName;

    /**
     * 自定义注解
     */
    @PhoneValidatorAnnotation
    private String phone;
}
